<?php
class Admin_NewscatController extends Zend_Controller_Action
{	
    private $_params;
	private $_auth;
	private $_acl;
    public function init(){
        $this->_params      = $this->_request->getParams();        
        $this->_acl         = new My_Acl();
        $this->view->acl    = $this->_acl;        
        $this->_auth        = $this->_acl->checkAllowed();
        $this->view->auth   = $this->_auth;        
        $this->view->headScript()->appendFile(BASE_URL.'static/assets/js/main/newscat.js');
    }
        
    public function indexAction(){
        $modelNewscat            = new Admin_Model_News();
        $newsCatList             = $modelNewscat->getAllData()->toArray();        
        $this->view->newsCatList = $newsCatList;        
    }
}